import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
	mode: 'history',
	routes: [{
		path: '/', //登录，身份校验
		name: 'login',
		component: () => import('./views/Login/Login.vue')
	}, {
		path: '/home', //首页
		name: 'home',
		component: () => import('./views/Home/Home.vue')
	}, {
		path: '/addresslist', //收件地址
		name: 'addresslist',
		component: () => import('./views/Address/AddressList.vue')
	}, {
		path: '/addressedit', //添加/编辑 收件地址
		name: 'addressedit',
		component: () => import('./views/Address/AddressEdit.vue')
	}, {
		path: '/article-ranking', //好文榜单
		name: 'article-ranking',
		component: () => import('./views/Article/ArticleRanking.vue')
	}, {
		path: '/article-details', //文章详情
		name: 'article-details',
		component: () => import('./views/Article/ArticleDetails.vue')
	}, {
		path: '/collect-list', //阅读收藏
		name: 'collect-list',
		component: () => import('./views/Collect/CollectList.vue')
	}, {
		path: '/certification', //实名认证
		name: 'certification',
		component: () => import('./views/Certification/Certification.vue')

	}, {
		path: '/contribute-list', //我的投稿
		name: 'contribute-list',
		component: () => import('./views/Contribute/ContributeList.vue')
	}, {
		path: '/submit-contribute', //投稿
		name: 'submit-contribute',
		component: () => import('./views/Contribute/SubmitContribute.vue')
	}, {
		path: '/contribute-detail', //投稿
		name: 'contribute-detail',
		component: () => import('./views/Contribute/Works.vue')
	}, {
		path: '/lcontribute-list', //我的作品
		name: 'lcontribute-list',
		component: () => import('./views/Learn/ContributeList.vue')
	}, {
		path: '/lsubmit-contribute', //发布作品
		name: 'lsubmit-contribute',
		component: () => import('./views/Learn/SubmitContribute.vue')
	}, {
		path: '/leadership', //领导力中心
		name: 'leadership',
		component: () => import('./views/Leadership/Leadership.vue')
	}, {
		path: '/share-score', //分享攒分
		name: 'share-score',
		component: () => import('./views/ShareScore/ShareScore.vue')
	}, {
		path: '/learn', //学习中心
		name: 'learn',
		component: () => import('./views/Learn/Learn.vue')
	}, {
		path: '/works', //学习中心
		name: 'works',
		component: () => import('./views/Works/Works.vue')
	}, {
		path: '/problem-consultation',//难题咨询
		name: 'problem-consultation',
		component: () => import('./views/Problem/Problem.vue'),
	}, {
		path: '/problem-detail',//难题详情
		name: 'problem-detail',
		component: () => import('./views/Problem/Problemdetail.vue'),
	}, {
		path: '/myProblem-list',//我的难题咨询
		name: 'myProblem-list',
		component: () => import('./views/Problem/MyProblem.vue'),
	},{
		path: '/experience-share',//经验分享
		name: 'experience-share',
		component: () => import('./views/ExperienceShare/Experience.vue'),
	}, {
		path: '/mymessage', //我的信息
		name: 'mymessage',
		component: () => import('./views/MyMessage/index.vue')
	}, {
		path: '/mytest', //自我测评
		name: 'mytest',
		component: () => import('./views/MyTest/index.vue')
	}, {
		path: '/addproblem', //发布难题咨询
		name: 'addproblem',
		component: () => import('./views/Problem/AddProblem.vue')
	}, {
		path: '/selproblemtype', //选择难题分类
		name: 'selproblemtype',
		component: () => import('./views/Problem/SelectType.vue')
	}, {
		path: '/myorder', //我的征订
		name: 'myorder',
		component: () => import('./views/MyOrder/index.vue')
	}, {
		path: '/*',
		name: 'Page404',
		component: () => import('./views/Error/404.vue'),
	}]
})
